module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema,
        con = mongoose.connection;

    con.once('open', () => {
        console.log('连接成功');
    });

    const UserSchema = new Schema({
        userName: { type: String },
        password: { type: String },
    });

    return mongoose.model('User', );
}